package com.woniu.product.feign;

import com.woniu.common.dto.CouPonDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 杜梅杰
 * @Description
 * @Date 2024/5/25 16:17
 */
@FeignClient(value = "zgyd-jifen")
public interface CouponFeign {

    /**
     * 根据id查优惠卷种类
     */
    @PostMapping("/queryCouponById")
    CouPonDto queryCouponById(@RequestParam("id") Integer id);
}
